function changelocation(adirect){
    window.location.href = adirect;
}
$(function () {
    $("#save_user").click(function(e){
        var form = $("#user-info-form");
        var url = form.attr("action");
        var serializeArray = form.serializeArray();
        $.post(url, serializeArray, function (result) {
            alert(result.msg);
        });
    });
});